<include file="public:header"/>
<div class="seltpye_x">
    <div class="left">注册时间</div>
    <div class="right">
        <a href="{:P(array('settr'=>''))}" <eq name='Think.get.settr' value=''>class="select"</eq>>不限</a>
        <a href="{:P(array('settr'=>'3'))}" <eq name='Think.get.settr' value='3'>class="select"</eq>>三天内</a>
        <a href="{:P(array('settr'=>'7'))}" <eq name='Think.get.settr' value='7'>class="select"</eq>>一周内</a>
        <a href="{:P(array('settr'=>'30'))}" <eq name='Think.get.settr' value='30'>class="select"</eq>>一月内</a>
        <a href="{:P(array('settr'=>'180'))}" <eq name='Think.get.settr' value='180'>class="select"</eq>>半年内</a>
        <a href="{:P(array('settr'=>'360'))}" <eq name='Think.get.settr' value='360'>class="select"</eq>>一年内</a>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
<div class="seltpye_x">
    <div class="left">微信绑定状态</div>
    <div class="right">
        <a href="{:P(array('is_bind'=>''))}" <eq name='Think.get.is_bind' value=''>class="select"</eq>>不限</a>
        <a href="{:P(array('is_bind'=>'1'))}" <eq name='Think.get.is_bind' value='1'>class="select"</eq>>绑定</a>
        <a href="{:P(array('is_bind'=>'0'))}" <eq name='Think.get.is_bind' value='0'>class="select"</eq>>未绑定</a>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
<div class="seltpye_x" style="display: none">
    <div class="left">数据来源</div>
    <div class="right">
        <a href="{:P(array('source'=>''))}" <eq name='Think.get.source' value=''>class="select"</eq>>不限</a>
        <a href="{:P(array('source'=>'1'))}" <eq name='Think.get.source' value='1'>class="select"</eq>>网页端</a>
        <a href="{:P(array('source'=>'2'))}" <eq name='Think.get.source' value='2'>class="select"</eq>>手机端</a>
        <a href="{:P(array('source'=>'3'))}" <eq name='Think.get.source' value='3'>class="select"</eq>>小程序</a>
        <a href="{:P(array('source'=>'4'))}" <eq name='Think.get.source' value='4'>class="select"</eq>>App端</a>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
<form id="form1" name="form1" method="post" action="{:U('member_delete')}">
    <div class="list_th">
        <div class="td" style=" width:20%;">
            <label id="chkAll" class="left_padding">
                <input type="checkbox" name="chkAll" id="chk" title="全选/反选"/>用户名
            </label>
        </div>
        <div class="td" style=" width:5%;">简历姓名</div>
        <div class="td" style=" width:8%;">手机</div>
        <div class="td" style=" width:15%;">email</div>
        <div class="td" style=" width:5%;">余额</div>
        <div class="td" style=" width:7%;">等級</div>
        <div class="td center" style=" width:10%;">注册时间</div>
        <div class="td center" style=" width:10%;">最后登录时间</div>
        <div class="td" style=" width:20%;">操作</div>
        <div class="clear"></div>
    </div>

    <volist name="list" id="vo">
        <div class="list_tr link_black">
            <div class="td" style=" width:20%;">
                <div class="left_padding striking">
                    <input name="tuid[]" type="checkbox" id="id" value="{$vo['uid']}"/>{$vo['username']}
                    <if condition="$vo['avatars'] neq ''">
                        <span class="pictip vtip" title="<img src='{:attach($vo['avatars'],'avatar')}' border=0 align=absmiddle width=120 height=120>">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    </if>
                    <if condition="$vo['is_bind']">
                        <span class="weixin_bind">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    </if>
                </div>
            </div>
            <div class="td" style=" width:5%;">
                <if condition="$vo['resume_id']">
                    <!--<a href="{$vo.resume_url}" target="_blank">{$vo.fullname}</a>-->
                    <a href="{:U('info',array('resumeId'=>$vo['resume_id'],'_k_v'=>$vo['uid']))}" target="_blank">{$vo.fullname}</a>
                <else/>
                    <span style="color: #999999">无简历</span>
                </if>
            </div>
            <div class="td" style=" width:8%;">
                <span>{$vo['mobile']|default="未填写"}</span>
            </div>
            <div class="td" style=" width: 15%;">
                <span>{$vo['email']|default="未填写"}</span>
            </div>
            <div class="td" style=" width: 5%;">
                <span>{$vo['money']}</span>
            </div>
            <div class="td" style=" width: 7%;">
                <span>{$vo['advisor_level_name']|default="无"}</span>
            </div>
            <div class="td center" style=" width:10%;">{:admin_date($vo['reg_time'])}</div>
            <div class="td center" style=" width:10%;">
                <if condition="$vo['last_login_time']">
                    {:admin_date($vo['last_login_time'])}<else />从未登录
                </if>
                <span class="view login_log" title="最新5次登录记录" parameter="id={$vo['uid']}">&nbsp;&nbsp;&nbsp;</span>
            </div>
            <div class="td edit" style=" width:20%;">
                <!--<a href="javascript:void(0);" class="business" parameter="uid={$vo['uid']}" hideFocus="true">业务</a>-->
                <a href="javascript:void(0);" class="blue personal_log" parameter="uid={$vo['uid']}">日志</a>
                <if condition="$apply['Analyze']">
                <!--<a href="{:U('Analyze/Admin/analyze_list_per',array('uid'=>$vo['uid'],'utype'=>2,'_k_v'=>$vo['id']))}">统计</a>-->
                </if>
                <a href="{:U('member_edit',array('uid'=>$vo['uid'],'_k_v'=>$vo['uid']))}">编辑</a>

                <!--<a href="{$vo.resume_url}"  target="_blank">简历</a>-->
                <a href="{:U('info',array('resumeId'=>$vo['resume_id'],'_k_v'=>$vo['uid']))}" target="_blank">简历</a>
                <a href="{:U('guwen_money_log',array('uid'=>$vo['uid'],'_k_v'=>$vo['uid']))}"   parameter="uid={$vo['uid']}">余额记录</a>
                <!--<a href="javascript:;" class="J_message" parameter="uid={$vo['uid']}">发消息</a>-->
            </div>
            <div class="clear"></div>
        </div>
    </volist>
</form>

<empty name="list">
    <div class="list_empty">没有任何信息！</div>
</empty>

<div class="pages">{$page}</div>

</div>
<include file="public:footer"/>

</body>
<script type="text/javascript">
    $(document).ready(function () {
        //登录日志
        $(".login_log").click(function () {
            var qsDialog = $(this).dialog({
                title: '登录日志',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/login_log')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
        //会员日志
        $(".login_log").click(function () {
            var qsDialog = $(this).dialog({
                title: '登陆日志',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/login_log')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
         //会员日志
        $(".personal_log").click(function () {
            var qsDialog = $(this).dialog({
                title: '会员日志',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/personal_log')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
        //余额记录
        $(".money_log").click(function () {
            var qsDialog = $(this).dialog({
                title: '余额记录',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/guwen_money_log')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });



        $(".J_message").click(function () {
            $('.modal_backdrop').remove();
            $('.modal').remove();
            var qsDialog = $(this).dialog({
                title: '发消息',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/ajax_message')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
        //业务
        $(".business").click(function () {
            var qsDialog = $(this).dialog({
                title: '业务',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/business')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
        //批量删除
        $("#ButDel").click(function () {
            if (confirm('删除会员，该会员下简历、企业、职位信息将同步删除')) {
                $("form[name=form1]").attr("action", "{:U('member_delete')}");
                $("form[name=form1]").submit();
            }
        });
    });
</script>
</html>